package com.linln.admin.SpringBoot.repository;

import com.linln.admin.SpringBoot.domain.Lab;
import com.linln.modules.system.repository.BaseRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author Airili
 * @date 2020/12/22
 */
public interface LabRepository extends BaseRepository<Lab, Long> {
    @Query(value="select * from t_lab where id = ?1",nativeQuery=true)
    Lab findByIdd(Long id);

    @Query(value="select * from t_lab ",nativeQuery=true)
    List<Lab> findAlll();
}